package Demo15;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-12-20
 * Time: 11:12
 */
import java.util.Scanner;
/* 请在这里填写答案 */

public class Main{
    public static void main(String args[]){
        Scanner scan=new Scanner(System.in);
        Bird b1=new Bird(scan.next(),scan.nextInt());
        Bird b2=new Bird(scan.next(),scan.nextInt());
        System.out.println(b1.equals(b2));

    }
}
class Bird{
    private String color;
    private int size;

    public Bird(String color, int size) {
        this.color = color;
        this.size = size;
    }

    public String equals(Bird bird) {
        if (bird.color.equals(color)&&bird.size==size){
            return "同一只鸟";
        }
        else {
            return "不同一只鸟";
        }
    }
}